package tuSecure;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.users.User;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Alert {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private User author;

    @Persistent
    private String content;
    
    @Persistent
    private String type;
    
    @Persistent
    private String comment;
    
    @Persistent
    private String phone;
    
    @Persistent
    private String longitude;

    @Persistent
    private String latitude;
    
    @Persistent
    private String date;
    
    @Persistent
    private String symbol;
    


    public Alert(String symbol,String content,String type,  String phone,String comment, String longitude, String latitude, String date) {
        //this.author = author;
    	this.setSymbol(symbol);
        this.content = content;
        this.date = date;
        this.type = type;
        this.phone = phone;
        this.comment = comment;
        this.setLongitude(longitude);
        this.setLatitude(latitude);
      
        
    }


	public void Alert6(final String symbol, final String content2, final String type2, final String phone2,
			final String comment2, final String longitude2, final String latitude2, final String date2) {
		// TODO Auto-generated constructor stub
	}

	public void Alert5(final String content2, final String type2, final String phone2, final String comment2,
			final String longitude2, final String latitude2, final String date2) {
		// TODO Auto-generated constructor stub
	}

	public void Alert4(String content2, String type2, String phone2, String comment2,
			String longitude, String latitude, String date) {
		// TODO Auto-generated constructor stub
	}

	public void Alert3(String content2, String type2, String phone2, String date2) {
		// TODO Auto-generated constructor stub
	}

	public void Alert2(String content2, String type2, String phone2, String comment2,
			Date date2) {
		// TODO Auto-generated constructor stub
	}

	public void Alert1(String content2, String type2, String date2) {
		// TODO Auto-generated constructor stub
	}

	public Key getKey() {
        return key;
    }

    public User getAuthor() {
        return author;
    }

    public String getContent() {
        return content;
    }

    public String getDate() {
        return date;
    }

    public void setAuthor(User author) {
        this.author = author;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setDate(String date) {
        this.date = date;
    }

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPhone() {
		return phone;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getComment() {
		return comment;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public String getSymbol() {
		return symbol;
	}

}
